@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&family=Jost:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&family=Jost:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&family=Jost:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:  "Jost", sans-serif;
}

body {
    line-height: 1.6;
    background-color: #fff3ec;
    color: #44291d;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #44291d;
    font-size: 2.5rem;
}

.task-form {
    background-color: #fff3ec;
    border: 2.5px solid #44291d;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 2px solid #44291d;
    border-radius: 5px;
    font-size: 16px;
}

textarea {
    height: 80px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #44291d;
}

button {
    cursor: pointer;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-add {
    background-color: #44291db7;
    color: white;
    width: 100%;
}

.btn-add:hover {
    background-color: #44291d;
}

.filter-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
}

.tasks-container {
    background-color: #fff3ec;
    padding: 20px;
    border: 2.5px solid #44291d;
    border-radius: 10px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.tasks-container h2 {
    margin-bottom: 20px;
    color: #44291d;
    border-bottom: 2px solid #44291d;
    padding-bottom: 10px;
}

.task-item {
    border: 2px solid #44291d;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px;
    transition: transform 0.2s;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.task-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.task-title {
    flex-grow: 1;
    font-size: 18px;
    margin: 0;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.btn-edit {
    background-color: rgba(0, 128, 0, 0.76);
    color: white;
}

.btn-edit:hover {
    background-color: green
}

.btn-delete {
    background-color: rgba(255, 0, 0, 0.649);
    color: white;
}

.btn-delete:hover {
    background-color: red;
}

.task-body {
    padding-left: 30px;
}

.task-description {
    margin-bottom: 10px;
    color: #44291d;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #44291d;
}

.task-due-date::before {
    content: "📅 ";
}

.task-priority {
    font-weight: bold;
}

.task-priority.low {
    color: #2ecc71;
}

.task-priority.medium {
    color: #f39c12;
}

.task-priority.high {
    color: #e74c3c;
}

.completed {
    opacity: 0.6;
}

.completed .task-title {
    text-decoration: line-through;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 10px;
    }
}